import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '渠道类型',
    align: "center",
    dataIndex: 'channelType_dictText'
  },
  {
    title: '渠道编码',
    align: "center",
    dataIndex: 'channelCode'
  },
  {
    title: '渠道名称',
    align: "center",
    dataIndex: 'channelName'
  },
  {
    title: '企业数量',
    align: "center",
    dataIndex: 'companyCount'
  },
  {
    title: '销售人员数量',
    align: "center",
    dataIndex: 'salesmanCount'
  },
  {
    title: '销售订单数量',
    align: "center",
    dataIndex: 'saleOrderCount'
  },
];

// 高级查询数据
export const superQuerySchema = {
  channelType: {title: '渠道类型',order: 0,view: 'number', type: 'number',dictCode: 'dict_sale_channel_type',},
  channelCode: {title: '渠道编码',order: 1,view: 'text', type: 'string',},
  channelName: {title: '渠道名称',order: 2,view: 'text', type: 'string',},
  companyCount: {title: '企业数量',order: 3,view: 'number', type: 'number',},
  salesmanCount: {title: '销售人员数量',order: 4,view: 'number', type: 'number',},
  saleOrderCount: {title: '销售订单数量',order: 5,view: 'number', type: 'number',},
};
